<!--
  Generated template for the DetailDemoPage page.

  See http://ionicframework.com/docs/components/#navigation for more info on
  Ionic pages and navigation.
-->
<ion-header>

  <ion-navbar>
    <ion-title>detail-demo</ion-title>
  </ion-navbar>

</ion-header>


<ion-content padding>
  <form [formGroup]="myForm" (submit)="saveForm($event)">
    <ion-item>
      <ion-label stacked>Field 1</ion-label>
      <ion-input formControlName="field1" type="text"></ion-input>
    </ion-item>
    <ion-item>
      <ion-label stacked>{{selectedItem.userName.value}}</ion-label>
      <ion-input formControlName="field2" type="text"></ion-input>
    </ion-item>
    <ion-item>
      <ion-label stacked>Field 3</ion-label>
      <ion-input formControlName="field3" type="text"></ion-input>
    </ion-item>
    <button ion-button type="submit" [disabled]="!myForm.valid">提交</button>
  </form>
</ion-content>
